package Day004.ZuoYe;

public class Test {
    public static void main(String[] args) {

        //Phone p1 = new Phone("华为","金色",5999);
//
        //Phone p2 = new Phone("小米","粉色",4999);
//
        //System.out.println(p1.toString());
        //System.out.println(p2.toString());

        Student s1 = new Student("张三","男",18);
        Student s2 = new Student("张三","男",18);

        System.out.println(s1.equals(s2)); //true
    }
}
